﻿using System;
using System.ComponentModel;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;

namespace Tsol.SandboxWebserviceSample.SandboxWebserviceSamplePart
{
    public class Person
    {
        public string Name { get; set; }
        public string Address { get; set; }
    }

    [ToolboxItemAttribute(false)]
    public class SandboxWebserviceSamplePart : SandboxWebServicePart<Person, String>
    {
        protected override void Execute()
        {
            Response = new Person();
            Response.Name = "John Doe";
            Response.Address = "theaddressstreet 555";
        }
    }
}
